package com.mh.mh.util;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class WuXingRelationUtil {

    public static final  Map<String, String> dataMap;
    // 五行生克邢
    public static final  Map<String, String> wxskMap;

    static {
        dataMap = new HashMap<String, String>();
        dataMap.put("甲","木");
        dataMap.put("乙","木");
        dataMap.put("寅","木");
        dataMap.put("卯","木");
        dataMap.put("3","木");
        dataMap.put("8","木");
        dataMap.put("三","木");
        dataMap.put("八","木");

        dataMap.put("丙","火");
        dataMap.put("丁","火");
        dataMap.put("午","火");
        dataMap.put("巳","火");
        dataMap.put("2","火");
        dataMap.put("7","火");
        dataMap.put("二","火");
        dataMap.put("七","火");

        dataMap.put("戊","土");
        dataMap.put("己","土");
        dataMap.put("丑","土");
        dataMap.put("辰","土");
        dataMap.put("未","土");
        dataMap.put("戌","土");
        dataMap.put("5","土");
        dataMap.put("0","土");
        dataMap.put("五","土");
        dataMap.put("十","土");

        dataMap.put("庚","金");
        dataMap.put("辛","金");
        dataMap.put("申","金");
        dataMap.put("酉","金");
        dataMap.put("4","金");
        dataMap.put("9","金");
        dataMap.put("四","金");
        dataMap.put("九","金");

        dataMap.put("壬","水");
        dataMap.put("癸","水");
        dataMap.put("子","水");
        dataMap.put("亥","水");
        dataMap.put("1","水");
        dataMap.put("6","水");
        dataMap.put("一","水");
        dataMap.put("六","水");

    }

    static{
        wxskMap = new HashMap<String, String>();
        wxskMap.put("金金","<邢>");
        wxskMap.put("金木",">克>");
        wxskMap.put("金火","<克<");
        wxskMap.put("金水",">生>");
        wxskMap.put("金土","<生<");

        wxskMap.put("木木","<邢>");
        wxskMap.put("木水","<生<");
        wxskMap.put("木火",">生>");
        wxskMap.put("木土",">克>");
        wxskMap.put("木金","<克<");

        wxskMap.put("水水","<邢>");
        wxskMap.put("水火",">克>");
        wxskMap.put("水土","<克<");
        wxskMap.put("水金","<生<");
        wxskMap.put("水木",">生>");

        wxskMap.put("火火","<邢>");
        wxskMap.put("火金",">克>");
        wxskMap.put("火水","<克<");
        wxskMap.put("火木","<生<");
        wxskMap.put("火土",">生>");

        wxskMap.put("土土","<邢>");
        wxskMap.put("土水",">克>");
        wxskMap.put("土木","<克<");
        wxskMap.put("土火","<生<");
        wxskMap.put("土金",">生>");

    }





}
